package org.lmj.dos.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.lmj.dos.web.resultdo.OrdersVo;

import java.util.Date;
import java.util.List;

@Data
@TableName("mall_order")
public class OrderEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String orderNo;

    private Integer userId;

    private Integer postage;

    private Integer status;

    private Integer addressId;

    private Date sendTime;

    private Date endTime;

    private Date closeTime;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    private Double payment;

}
